/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// program
const paginationRouter = {
  path: '/pagination',
  hidden: false,
  component: Layout,
  redirect: 'noRedirect',
  name: '渠道/站群',
  meta: {
    title: '渠道/站群',
    icon: 'component',
    roles: ['market']
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/pagination/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'domain',
      component: () => import('@/views/pagination/domain/domain'),
      name: '域名',
      meta: { title: '域名' }
    },
    {
      path: 'domain-add',
      component: () => import('@/views/pagination/domain/domain-add'),
      name: '新域名',
      hidden: true,
      meta: {
        title: '新域名'
      }
    },
    {
      path: 'domain-detail',
      component: () => import('@/views/pagination/domain/domain-detail'),
      name: '新域名',
      hidden: true,
      meta: {
        title: '新域名'
      }
    },
    {
      path: 'platform',
      component: () => import('@/views/pagination/index'),
      name: '平台',
      meta: { title: '平台' },
      children:[
        {
          path: 'platform',
          component: () => import('@/views/pagination/platform/platform'),
          name: '平台',
          meta: { title: '平台' }
        },
        {
          path: 'platform-detail',
          component: () => import('@/views/pagination/platform/platform-detail'),
          name: '平台信息',
          hidden: true,
          meta: { title: '平台信息' }
        },
        {
          path: 'platform-add',
          component: () => import('@/views/pagination/platform/platform-add'),
          name: '新平台',
          hidden: true,
          meta: {
            title: '新平台'
          }
        },
        {
          path: 'catalogue',
          component: () => import('@/views/pagination/catalogue/catalogue'),
          name: '目录',
          meta: { title: '目录' }
        },
        {
          path: 'catalogue-detail',
          component: () => import('@/views/pagination/catalogue/catalogue-detail'),
          name: '新域名',
          hidden: true,
          meta: {
            title: '新域名'
          }
        },
        {
          path: 'catalogue-add',
          component: () => import('@/views/pagination/catalogue/catalogue-add'),
          name: '新栏目',
          hidden: true,
          meta: {
            title: '新栏目'
          }
        }
      ]
    },
    {
      path: 'page',
      component: () => import('@/views/pagination/index'),
      name: '页面',
      meta: { title: '页面' },
      children:[
        {
          path: 'page',
          component: () => import('@/views/pagination/page/page'),
          name: '页面',
          meta: { title: '页面' }
        },
        {
          path: 'page-detail',
          component: () => import('@/views/pagination/page/page-detail'),
          name: '页面信息',
          hidden: true,
          meta: { title: '页面信息' }
        },
        {
          path: 'page-add',
          component: () => import('@/views/pagination/page/page-add'),
          name: '新页面',
          hidden: true,
          meta: {
            title: '新页面'
          }
        }
      ]
    },
    {
      path: 'block',
      component: () => import('@/views/pagination/index'),
      name: '模块',
      meta: { title: '模块' },
      children:[
        {
          path: 'block',
          component: () => import('@/views/pagination/block/block'),
          name: '模块',
          meta: { title: '模块' }
        },
        {
          path: 'block-add',
          component: () => import('@/views/pagination/block/block-add'),
          name: '新模块',
          hidden: true,
          meta: {
            title: '新模块'
          }
        },
        {
          path: 'block-detail',
          component: () => import('@/views/pagination/block/block-detail'),
          name: '新域名',
          hidden: true,
          meta: {
            title: '新域名'
          }
        },

      ]
    }
  ]
}

export default paginationRouter
